﻿<UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
             x:Class="SilverlightClient.MainPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:FlipControl="clr-namespace:FlipControl;assembly=FlipControl"
             mc:Ignorable="d" Height="860" Width="1210" xmlns:my="clr-namespace:SilverLightClient">

    <Grid x:Name="LayoutRoot" Background="White" Height="1340" Width="1210">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="384*" />
            <ColumnDefinition Width="826*" />
        </Grid.ColumnDefinitions>
        <Image Height="177" HorizontalAlignment="Left" Margin="52,-2,0,0" Name="imgTitle" Source="Images/title.png" Stretch="Fill" VerticalAlignment="Top" Width="1108" Grid.ColumnSpan="2" />
        <Button Content="Login" Height="23" HorizontalAlignment="Left" Margin="490,62,0,0" Name="loginBtn" VerticalAlignment="Top" Width="75"  TabIndex="4" Click="loginBtn_Click" Grid.Column="1" />

        <FlipControl:FlipControl  x:Name="Flipper" Grid.Column="1" Margin="115,168,26,-197">
            <FlipControl:FlipControl.Page1>
                <Border CornerRadius="3" BorderThickness="1">
                    <StackPanel Margin="0,0,0,0" Orientation="Vertical" Width="644">
                        <StackPanel Orientation="Horizontal">
                            <sdk:Label Content="Threads" Height="28" HorizontalAlignment="Left" Name="label6" VerticalAlignment="Bottom" Grid.Column="1" />
                            <Button Margin="443,0,0,0"  Width="155" Click="Button_ShowNotifications_Click">
                                <StackPanel Orientation="Horizontal">
                                    <Image Source="/SilverlightClient;component/Images/Symbol-Error.png" Height="25"></Image>
                                    <sdk:Label Content="   Show Notifications"/>
                                </StackPanel>
                            </Button>
                        </StackPanel>
                        <sdk:TreeView Name="threadsTreeView" TabIndex="6" SelectedItemChanged="threadsTreeView_SelectedItemChanged" HorizontalAlignment="Right" Width="641" Grid.Column="1" Height="589" BorderBrush="#FFB1B1B1"></sdk:TreeView>
                    </StackPanel>
                </Border>

            </FlipControl:FlipControl.Page1>
            <FlipControl:FlipControl.Page2>
                <Border CornerRadius="3" BorderThickness="1">
                    <StackPanel Margin="0,-790,-90,0" Height="556">
                        <Button Width="274" Margin="-17,0,0,0"  Click="Button_ShowThreads_Click">
                            <StackPanel Orientation="Horizontal">
                                <Image Source="/SilverlightClient;component/Images/Forum.png" Height="27" Width="32"></Image>
                                <sdk:Label Content="  Show Threads"></sdk:Label>
                            </StackPanel>
                        </Button>
                        <my:BackSideNotifiactions  x:Name="notificationCenter" Height="608">
                            <my:BackSideNotifiactions.BorderBrush>
                                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                                    <GradientStop Color="Black" Offset="0" />
                                    <GradientStop Color="#FF8A99A0" Offset="1" />
                                </LinearGradientBrush>
                            </my:BackSideNotifiactions.BorderBrush>
                        </my:BackSideNotifiactions>
                        <!--<my:BackSideNotifiactions Height="236" Width="395" />-->
                    </StackPanel>
                </Border>
            </FlipControl:FlipControl.Page2>

        </FlipControl:FlipControl>
    
        <sdk:Label Content="Username" Height="28" HorizontalAlignment="Left" Margin="291,34,0,0" Name="label1" VerticalAlignment="Top" Grid.Column="1" />
        <sdk:Label Content="Password" Height="28" HorizontalAlignment="Left" Margin="294,63,0,0" Name="label2" VerticalAlignment="Top" Grid.Column="1" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="360,29,0,0" Name="usernameTxt" VerticalAlignment="Top" Width="120" TabIndex="1" Grid.Column="1" />
        <ListBox Margin="16,198,722,867" Name="subforumsList" TabIndex="5" SelectionChanged="subforumsList_SelectionChanged" Grid.ColumnSpan="2" />
        <sdk:Label Content="SubForums" Height="28" HorizontalAlignment="Left" Margin="16,174,0,0" Name="label3" VerticalAlignment="Top" />
        <sdk:Label Content="Welcome,  " Height="28" HorizontalAlignment="Left" Margin="32,80,0,0" Name="label4" VerticalAlignment="Top" Grid.Column="1" />
        <sdk:Label Content="Privilages:" Height="28" HorizontalAlignment="Left" Margin="32,103,0,0" Name="label5" VerticalAlignment="Top" Grid.Column="1" />
        
        
        <sdk:Label Content="Unknown" Height="28" Margin="91,80,0,0" Name="userNameLabel" VerticalAlignment="Top" HorizontalAlignment="Left" Width="226" Grid.Column="1" />
        <Button Content="Register" Height="23" HorizontalAlignment="Left" Margin="490,30,0,0" Name="signBtn" VerticalAlignment="Top" Width="75"  TabIndex="3" Click="signBtn_Click" Grid.Column="1" />
        <PasswordBox Height="23" HorizontalAlignment="Left" Margin="360,61,0,0" Name="passwordBox1" VerticalAlignment="Top" Width="120" TabIndex="2" Grid.Column="1" />
        <sdk:Label Content="None" Height="28" HorizontalAlignment="Left" Margin="100,103,0,0" Name="privilagesLabel" VerticalAlignment="Top" Grid.Column="1" />
        <sdk:TabControl Height="313" HorizontalAlignment="Left" Margin="14,477,0,0" Name="tabOptions" VerticalAlignment="Top" Width="474" Grid.ColumnSpan="2">
            <sdk:TabItem Header="Main" Name="tabMain">
                <Grid>
                    <TextBox Height="23" HorizontalAlignment="Left" Name="txtSearch" VerticalAlignment="Top" Width="120" Margin="48,76,0,0" />
                    <Button Content="GO" Height="23" Margin="0,76,124,177" Name="btnSearch" Visibility="Visible" Width="38" HorizontalAlignment="Right" Click="btnSearch_Click" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="174,76,0,0" Name="cbSearchFilters" VerticalAlignment="Top" Width="120">
                        <ComboBoxItem Name="cbiContent" Content="Content" IsSelected="True" />
                        <ComboBoxItem Name="cbiPublishedBy" Content="Published By" />
                    </ComboBox>
                    <sdk:Label HorizontalAlignment="Left" Name="lblSearch" Content="Search" VerticalAlignment="Top" Margin="48,54,0,0" />
                </Grid>
            </sdk:TabItem>
            <sdk:TabItem Header="Thread" Name="tabThread" IsEnabled="False">
                <Grid Name="gAddThread" Margin="6,28,6,0" Visibility="Visible" Grid.ColumnSpan="2">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="280*" />
                        <ColumnDefinition Width="98*" />
                    </Grid.ColumnDefinitions>
                    <Button Content="Publish" Margin="0,0,24,19" Name="addNewThreadBtn" Height="23" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="81" TabIndex="11" Grid.Column="1" Click="addNewThreadBtn_Click" />
                    <Image Height="59" HorizontalAlignment="Left" Margin="6,6,0,0" Name="image2" Source="/SilverlightClient;component/Images/1337098711_wall%20post.png" Stretch="Fill" VerticalAlignment="Top" Width="68" />
                    <sdk:Label Content="Subject" Height="28" HorizontalAlignment="Left" Margin="82,6,0,0" Name="label7" VerticalAlignment="Top" />
                    <sdk:Label Content="Content" Height="28" HorizontalAlignment="Left" Margin="82,68,0,0" Name="label8" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="82,39,0,0" Name="subjectText" VerticalAlignment="Top" Width="344" TabIndex="9" Grid.ColumnSpan="2" MaxLength="32" />
                    <TextBox Height="89" HorizontalAlignment="Left" Margin="82,89,0,0" Name="contentText" VerticalAlignment="Top" Width="344" TabIndex="10" Grid.ColumnSpan="2" TextWrapping="Wrap" AcceptsReturn="True" MaxLength="1024" />
                    <CheckBox Content="Post" Grid.Column="1" Height="16" HorizontalAlignment="Left" Margin="30,184,0,0" Name="cbIsPost" VerticalAlignment="Top" />
                    <Button Content="Delete" Height="23" Margin="244,206,14,19" Name="deleteBtn" Visibility="Visible" Click="deleteBtn_Click" />
                    <Button Content="Edit" Height="23" HorizontalAlignment="Right" Margin="0,206,95,0" Name="editBtn" VerticalAlignment="Top" Width="75" Click="editBtn_Click" />
                    <Button Content="Bump" Height="23" HorizontalAlignment="Left" Margin="82,206,0,0" Name="bumpBtn" VerticalAlignment="Top" Width="75" Click="bumpBtn_Click" />
                </Grid>
            </sdk:TabItem>
            <sdk:TabItem Header="Settings" Name="tabChangePw" IsEnabled="False">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="134*" />
                        <ColumnDefinition Width="328*" />
                    </Grid.ColumnDefinitions>
                    <Grid Name="gChangePassword" Height="148" Margin="6,28,6,100" Visibility="Visible" Grid.ColumnSpan="2">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="280*" />
                            <ColumnDefinition Width="98*" />
                        </Grid.ColumnDefinitions>
                        <PasswordBox Height="23" Name="passwordBox2" TabIndex="2" Width="120" Margin="133,6,80,119" />
                        <PasswordBox Name="passwordBox3" TabIndex="2" Width="120" Margin="133,35,80,89" />
                        <sdk:Label Content="New password:" Height="28" HorizontalAlignment="Left" Margin="6,39,0,0" Name="label11" VerticalAlignment="Top" Width="120" />
                        <sdk:Label Content="Confirm password:" Height="28" HorizontalAlignment="Left" Margin="6,70,0,0" Name="label12" VerticalAlignment="Top" Width="120" />
                        <Button Content="Change password" Height="23" HorizontalAlignment="Left" Margin="133,95,0,0" Name="btnChangePassword" VerticalAlignment="Top" Width="120" Click="btnChangePassword_Click" />
                        <PasswordBox Margin="133,65,80,59" Name="passwordBox4" TabIndex="2" Width="120" />
                        <sdk:Label Content="Old password:" Height="28" HorizontalAlignment="Left" Margin="6,10,0,0" Name="label13" VerticalAlignment="Top" Width="120" />
                        <Button Content="Disable" Height="23" HorizontalAlignment="Left" Margin="133,125,0,0" Name="btnEnableDisable" VerticalAlignment="Top" Width="120" Click="btnEnableDisable_Click" />
                    </Grid>
                </Grid>
            </sdk:TabItem>
            <sdk:TabItem Header="Admin" Name="tabAdmin" Visibility="Visible" IsEnabled="False">
                <Grid>
                    <Canvas Height="79" HorizontalAlignment="Left" Margin="6,5,0,0" Name="canvas1" VerticalAlignment="Top" Width="450">
                        <Button Content="Add Subforum" Height="23" Name="addSubfrmBtn" Width="122" Visibility="Visible" Click="addSubfrmBtn_Click" Canvas.Left="23" Canvas.Top="16" />
                        <TextBox Height="23" Name="tbSubforumTopic" Width="120" Canvas.Left="151" Canvas.Top="16" />
                        <Button Content="Remove Subforum" Name="removeSubforumsBtn" Height="23" Width="122" Visibility="Visible" Click="removeSubforumsBtn_Click" Canvas.Left="23" Canvas.Top="45" />
                    </Canvas>
                    <Canvas Height="97" HorizontalAlignment="Left" Margin="6,87,0,0" Name="canvas2" VerticalAlignment="Top" Width="450">
                        <Button Content="Add moderator" Height="23" Name="btnAddModerator" Width="122" Canvas.Left="21" Canvas.Top="11" Click="btnAddModerator_Click" />
                        <TextBox Height="26" Name="tbModeratorNameToAdd" Width="120" Canvas.Left="151" Canvas.Top="11"  />
                        <Button Canvas.Left="21" Canvas.Top="40" Content="Remove Moderator" Height="23" Name="tbRemoveModerator" Width="120" Click="tbRemoveModerator_Click" />
                        <Button Canvas.Left="21" Canvas.Top="69" Content="Replace Moderator" Height="23" Name="btnReplaceModerator" Width="120" Click="btnReplaceModerator_Click" />
                        <TextBox Canvas.Left="149" Canvas.Top="40" Height="23" Name="tbModeratorNameToRemove" Width="120" />
                        <Button Content="Suspend Moderator" Height="23" Name="tbSuspendModerator" Width="120" Canvas.Left="275" Canvas.Top="40" Click="tbSuspendModerator_Click" />
                    </Canvas>
                    <Button Content="Replace Admin" Height="23" HorizontalAlignment="Left" Margin="27,198,0,0" Name="btnReplaceAdmin" VerticalAlignment="Top" Width="120" Click="btnReplaceAdmin_Click" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="157,198,0,0" Name="tbReplaceAdmin" VerticalAlignment="Top" Width="120" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="157,235,0,0" Name="txtThreadCountForUser" VerticalAlignment="Top" Width="120" />
                    <Button Content="Thread Count For" Height="23" HorizontalAlignment="Left" Margin="27,235,0,0" Name="btnThreadCountForUser" VerticalAlignment="Top" Width="120" Click="btnThreadCountForUser_Click" />
                </Grid>
            </sdk:TabItem>
            <sdk:TabItem Name="tabModerator" Header="Moderator" Visibility="Visible" IsEnabled="False">
                <Grid>
                    <Button Content="Ban Member" Height="23" Name="btnBan" Width="120" Margin="0,136,277,116" HorizontalAlignment="Right" Click="btnBan_Click" />
                    <TextBox Height="23" HorizontalAlignment="Right" Name="txtUserNameBan" VerticalAlignment="Top" Width="120" Margin="0,107,277,0" />
                    <Image Height="169" HorizontalAlignment="Left" Margin="220,52,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="187" Source="/SilverlightClient;component/Images/ban.png" />
                </Grid>
            </sdk:TabItem>
        </sdk:TabControl>
        <sdk:Label Height="28" Content="Members currently logged in" HorizontalAlignment="Left" Margin="341,103,0,0" Name="label9" VerticalAlignment="Top" Width="174" Grid.Column="1" />
        <sdk:Label Height="28" FontSize="15" Content="0"  HorizontalAlignment="Center" Margin="360,123,346,0" Name="loggedInLabel" VerticalAlignment="Top" Width="120" Grid.Column="1" />
        <Button x:Name="refreshSubforumsBtn" Click="refreshSubforumsBtn_Click" Margin="-136,44,58,1020">
            <Button.Template>
                <ControlTemplate>
                    <Image Name="imgRefreshSubForums" Source="/SilverlightClient;component/Images/refresh.jpg" Width="28" />
                </ControlTemplate>
            </Button.Template>
        </Button>
    </Grid>
</UserControl>
